[INFO] cloning repository https://github.com/m-mekhlafi/CodeShield-AI
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/m-mekhlafi/CodeShield-AI" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm-mekhlafi%2FCodeShield-AI", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm-mekhlafi%2FCodeShield-AI'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 38b67aff0f22afb0d573d868c2dd5e1401cf4c35
[INFO] checking m-mekhlafi/CodeShield-AI against try#b152f5575a2ac7126ae0019e4e679abe9399213e for pr-157841
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fm-mekhlafi%2FCodeShield-AI" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/m-mekhlafi/CodeShield-AI
[INFO] finished tweaking git repo https://github.com/m-mekhlafi/CodeShield-AI
[INFO] tweaked toml for git repo https://github.com/m-mekhlafi/CodeShield-AI written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/m-mekhlafi/CodeShield-AI on toolchain b152f5575a2ac7126ae0019e4e679abe9399213e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b152f5575a2ac7126ae0019e4e679abe9399213e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/m-mekhlafi/CodeShield-AI already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b152f5575a2ac7126ae0019e4e679abe9399213e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 3dc4a1abdff761f843cfd862910f1966a9d3e0000eeef5bc7474f7b086cc3441
[INFO] running `Command { std: "docker" "start" "3dc4a1abdff761f843cfd862910f1966a9d3e0000eeef5bc7474f7b086cc3441", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3dc4a1abdff761f843cfd862910f1966a9d3e0000eeef5bc7474f7b086cc3441" "/opt/rustwide/cargo-home/bin/cargo" "+b152f5575a2ac7126ae0019e4e679abe9399213e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3dc4a1abdff761f843cfd862910f1966a9d3e0000eeef5bc7474f7b086cc3441", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3dc4a1abdff761f843cfd862910f1966a9d3e0000eeef5bc7474f7b086cc3441" "/opt/rustwide/cargo-home/bin/cargo" "+b152f5575a2ac7126ae0019e4e679abe9399213e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.186
[INFO] [stderr]    Compiling shlex v2.0.1
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]     Checking memchr v2.8.1
[INFO] [stderr]    Compiling autocfg v1.5.1
[INFO] [stderr]     Checking futures-sink v0.3.32
[INFO] [stderr]    Compiling dunce v1.0.5
[INFO] [stderr]    Compiling fs_extra v1.3.0
[INFO] [stderr]    Compiling pkg-config v0.3.33
[INFO] [stderr]     Checking typenum v1.20.1
[INFO] [stderr]     Checking zeroize v1.8.2
[INFO] [stderr]    Compiling aws-lc-rs v1.17.0
[INFO] [stderr]    Compiling displaydoc v0.2.6
[INFO] [stderr]    Compiling zerofrom v0.1.8
[INFO] [stderr]     Checking slab v0.4.12
[INFO] [stderr]     Checking log v0.4.32
[INFO] [stderr]     Checking rustls-pki-types v1.14.1
[INFO] [stderr]    Compiling yoke v0.8.3
[INFO] [stderr]     Checking tracing-core v0.1.36
[INFO] [stderr]    Compiling serde_json v1.0.150
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]    Compiling zerovec v0.11.6
[INFO] [stderr]    Compiling rustls v0.23.40
[INFO] [stderr]     Checking hashbrown v0.17.1
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking futures-util v0.3.32
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]     Checking http v1.4.2
[INFO] [stderr]    Compiling untrusted v0.9.0
[INFO] [stderr]    Compiling foldhash v0.2.0
[INFO] [stderr]     Checking futures-channel v0.3.32
[INFO] [stderr]    Compiling hashbrown v0.16.1
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]     Checking indexmap v2.14.0
[INFO] [stderr]     Checking potential_utf v0.1.5
[INFO] [stderr]     Checking generic-array v0.14.9
[INFO] [stderr]     Checking tinystr v0.8.3
[INFO] [stderr]     Checking zerotrie v0.2.4
[INFO] [stderr]     Checking icu_collections v2.2.0
[INFO] [stderr]    Compiling icu_locale_core v2.2.0
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking errno v0.3.14
[INFO] [stderr]     Checking mio v1.2.1
[INFO] [stderr]     Checking socket2 v0.6.4
[INFO] [stderr]     Checking signal-hook-registry v1.4.8
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]    Compiling jobserver v0.1.34
[INFO] [stderr]     Checking getrandom v0.2.17
[INFO] [stderr]    Compiling cc v1.2.63
[INFO] [stderr]    Compiling getrandom v0.4.2
[INFO] [stderr]    Compiling crc-catalog v2.5.0
[INFO] [stderr]    Compiling iana-time-zone v0.1.65
[INFO] [stderr]     Checking tokio v1.52.3
[INFO] [stderr]    Compiling crc v3.4.0
[INFO] [stderr]    Compiling chrono v0.4.45
[INFO] [stderr]    Compiling hashlink v0.11.1
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking icu_provider v2.2.0
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling webpki-roots v1.0.7
[INFO] [stderr]    Compiling either v1.16.0
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]     Checking icu_properties v2.2.0
[INFO] [stderr]     Checking icu_normalizer v2.2.0
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling aho-corasick v1.1.4
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling uuid v1.23.3
[INFO] [stderr]    Compiling cmake v0.1.58
[INFO] [stderr]    Compiling regex-syntax v0.8.11
[INFO] [stderr]    Compiling flume v0.12.0
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]     Checking hybrid-array v0.4.12
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling aws-lc-sys v0.41.0
[INFO] [stderr]    Compiling libsqlite3-sys v0.37.0
[INFO] [stderr]     Checking idna_adapter v1.2.2
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]     Checking anstyle-parse v1.0.0
[INFO] [stderr]    Compiling futures-executor v0.3.32
[INFO] [stderr]    Compiling libloading v0.8.9
[INFO] [stderr]     Checking sync_wrapper v1.0.2
[INFO] [stderr]     Checking openssl-probe v0.2.1
[INFO] [stderr]     Checking colorchoice v1.0.5
[INFO] [stderr]     Checking anstyle v1.0.14
[INFO] [stderr]     Checking option-ext v0.2.0
[INFO] [stderr]     Checking ipnet v2.12.0
[INFO] [stderr]    Compiling portable-atomic v1.13.1
[INFO] [stderr]     Checking dirs-sys v0.5.0
[INFO] [stderr]     Checking rustls-native-certs v0.8.4
[INFO] [stderr]     Checking anstream v1.0.0
[INFO] [stderr]     Checking block-buffer v0.12.0
[INFO] [stderr]     Checking crypto-common v0.2.2
[INFO] [stderr]    Compiling tree-sitter v0.22.6
[INFO] [stderr]     Checking regex-automata v0.4.14
[INFO] [stderr]     Checking unicode-width v0.2.2
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling anyhow v1.0.102
[INFO] [stderr]     Checking clap_lex v1.1.0
[INFO] [stderr]     Checking bitflags v2.13.0
[INFO] [stderr]     Checking const-oid v0.10.2
[INFO] [stderr]     Checking console v0.16.3
[INFO] [stderr]     Checking clap_builder v4.6.0
[INFO] [stderr]     Checking sharded-slab v0.1.7
[INFO] [stderr]     Checking dirs v6.0.0
[INFO] [stderr]     Checking digest v0.11.3
[INFO] [stderr]    Compiling clap_derive v4.6.1
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]     Checking errno v0.2.8
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]    Compiling tokio-stream v0.1.18
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking thread_local v1.1.9
[INFO] [stderr]     Checking encoding_rs v0.8.35
[INFO] [stderr]     Checking nu-ansi-term v0.50.3
[INFO] [stderr]     Checking tokio-util v0.7.18
[INFO] [stderr]     Checking tower v0.5.3
[INFO] [stderr]     Checking cpufeatures v0.3.0
[INFO] [stderr]     Checking unit-prefix v0.5.2
[INFO] [stderr]     Checking indicatif v0.18.4
[INFO] [stderr]     Checking sha2 v0.11.0
[INFO] [stderr]     Checking h2 v0.4.14
[INFO] [stderr]     Checking tower-http v0.6.11
[INFO] [stderr]     Checking walkdir v2.5.0
[INFO] [stderr]     Checking shellexpand v3.1.2
[INFO] [stderr]     Checking colored v3.1.1
[INFO] [stderr]     Checking hex v0.4.3
[INFO] [stderr]     Checking clap v4.6.1
[INFO] [stderr]     Checking regex v1.12.4
[INFO] [stderr]     Checking matchers v0.2.0
[INFO] [stderr]     Checking tracing-subscriber v0.3.23
[INFO] [stderr]    Compiling pcap v2.4.0
[INFO] [stderr]    Compiling rustls-webpki v0.103.13
[INFO] [stderr]     Checking hyper v1.10.1
[INFO] [stderr]     Checking hyper-util v0.1.20
[INFO] [stderr]    Compiling sqlx-core v0.9.0
[INFO] [stderr]    Compiling sqlx-sqlite v0.9.0
[INFO] [stderr]    Compiling sqlx-macros-core v0.9.0
[INFO] [stderr]    Compiling sqlx-macros v0.9.0
[INFO] [stderr]     Checking tokio-rustls v0.26.4
[INFO] [stderr]     Checking rustls-platform-verifier v0.7.0
[INFO] [stderr]     Checking hyper-rustls v0.27.9
[INFO] [stderr]     Checking reqwest v0.13.4
[INFO] [stderr]     Checking sqlx v0.9.0
[INFO] [stderr]     Checking codeshield v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Context` and `Result`
[INFO] [stdout]  --> src/capture.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 | use anyhow::{Result, Context};
[INFO] [stdout]   |              ^^^^^^  ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Capture` and `Device`
[INFO] [stdout]  --> src/capture.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | use pcap::{Capture, Device};
[INFO] [stdout]   |            ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Duration`, `SystemTime`, and `collections::HashMap`
[INFO] [stdout]  --> src/capture.rs:7:11
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::{collections::HashMap, time::{Duration, SystemTime}};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^^^^^         ^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/ast_chunker.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Context` and `Result`
[INFO] [stdout]  --> src/capture.rs:4:14
[INFO] [stdout]   |
[INFO] [stdout] 4 | use anyhow::{Result, Context};
[INFO] [stdout]   |              ^^^^^^  ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Capture` and `Device`
[INFO] [stdout]  --> src/capture.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | use pcap::{Capture, Device};
[INFO] [stdout]   |            ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Duration`, `SystemTime`, and `collections::HashMap`
[INFO] [stdout]  --> src/capture.rs:7:11
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::{collections::HashMap, time::{Duration, SystemTime}};
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^^^^^         ^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/ast_chunker.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FlowFeatures` is never constructed
[INFO] [stdout]   --> src/capture.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct FlowFeatures {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IdsAlert` is never constructed
[INFO] [stdout]   --> src/capture.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct IdsAlert {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `detect_anomaly` is never used
[INFO] [stdout]   --> src/capture.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub fn detect_anomaly(flow: &FlowFeatures) -> Option<IdsAlert> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `entropy` is never used
[INFO] [stdout]    --> src/capture.rs:108:8
[INFO] [stdout]     |
[INFO] [stdout] 108 | pub fn entropy(data: &[u8]) -> f64 {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `line_start` and `line_end` are never read
[INFO] [stdout]   --> src/ast_chunker.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct CodeChunk {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] 12 |     pub content: String,          // numbered lines: "  42 | let x = ..."
[INFO] [stdout] 13 |     pub line_start: usize,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 14 |     pub line_end: usize,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CodeChunk` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FlowFeatures` is never constructed
[INFO] [stdout]   --> src/capture.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct FlowFeatures {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IdsAlert` is never constructed
[INFO] [stdout]   --> src/capture.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub struct IdsAlert {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `detect_anomaly` is never used
[INFO] [stdout]   --> src/capture.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub fn detect_anomaly(flow: &FlowFeatures) -> Option<IdsAlert> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `entropy` is never used
[INFO] [stdout]    --> src/capture.rs:108:8
[INFO] [stdout]     |
[INFO] [stdout] 108 | pub fn entropy(data: &[u8]) -> f64 {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `line_start` and `line_end` are never read
[INFO] [stdout]   --> src/ast_chunker.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct CodeChunk {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] 12 |     pub content: String,          // numbered lines: "  42 | let x = ..."
[INFO] [stdout] 13 |     pub line_start: usize,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 14 |     pub line_end: usize,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CodeChunk` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 23s
[INFO] running `Command { std: "docker" "inspect" "3dc4a1abdff761f843cfd862910f1966a9d3e0000eeef5bc7474f7b086cc3441", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3dc4a1abdff761f843cfd862910f1966a9d3e0000eeef5bc7474f7b086cc3441", kill_on_drop: false }`
[INFO] [stdout] 3dc4a1abdff761f843cfd862910f1966a9d3e0000eeef5bc7474f7b086cc3441
